package com.miao.edu.authority.remote;

import com.miao.edu.authority.dto.JwtDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author niemiao
 */
@FeignClient(name = "edu-oauth-boot",path = "/oauth")
public interface OauthRemoteService {


    /**
     * 获取jwt对象中的userId和username
     * @param authentication
     * @return
     */
    @GetMapping(path = "/getJwt")
    public JwtDto getJwt(String authentication);


    /**
     * 判断是否是忽略的url
     * @param url
     * @return
     */
    @GetMapping(path = "ignoreUrl")
    public boolean ignoreAuthentication(String url);


}
